package com.ruoyi.project.paea.paeaDsTrade.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.project.data.tradeOperate.domain.PaeaDsTradeQuery;
import com.ruoyi.project.paea.paeaDsTrade.domain.PaeaDsTrade;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 交易流水Mapper接口
 *
 * @author 关晓强
 * @date 2020-03-16
 */
@Component
public interface PaeaDsTradeMapper extends BaseMapper<PaeaDsTrade>
{
    /**
     * 查询交易流水
     *
     * @param id 交易流水ID
     * @return 交易流水
     */
    public PaeaDsTrade selectPaeaDsTradeById(String id);

    /**
     * 查询交易流水列表
     *
     * @param paeaDsTrade 交易流水
     * @return 交易流水集合
     */
    public List<PaeaDsTrade> selectPaeaDsTradeList(PaeaDsTrade paeaDsTrade);

    public List<PaeaDsTrade> selectPaeaDsTrades(PaeaDsTradeQuery paeaDsTrade);

    /**
     * 新增交易流水
     *
     * @param paeaDsTrade 交易流水
     * @return 结果
     */
    public int insertPaeaDsTrade(PaeaDsTrade paeaDsTrade);

    /**
     * 修改交易流水
     *
     * @param paeaDsTrade 交易流水
     * @return 结果
     */
    public int updatePaeaDsTrade(PaeaDsTrade paeaDsTrade);

    /**
     * 删除交易流水
     *
     * @param id 交易流水ID
     * @return 结果
     */
    public int deletePaeaDsTradeById(String id);

    /**
     * 批量删除交易流水
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePaeaDsTradeByIds(String[] ids);

    public int filterTradesByIds(String[] ids);
    public int openTradesByIds(String[] ids);

    /**
     * 批量更新流水
     * @param paeaDsTradeList
     */
    public void batchUpdatePaeaDsTrades(List<PaeaDsTrade> paeaDsTradeList);
}
